package com.joysuch.wwyt.bp.bean.safetyworkcert;

import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/8/3 14:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BpWorkRiskDto {

    private String name;
    private Integer sum;

    public static List<BpWorkRiskDto> defaultDto(){
        List<BpWorkRiskDto> dtoList = Lists.newArrayList();
        dtoList.add(new BpWorkRiskDto("重大风险", 0));
        dtoList.add(new BpWorkRiskDto("较大风险", 0));
        dtoList.add(new BpWorkRiskDto("一般风险", 0));
        dtoList.add(new BpWorkRiskDto("低风险", 0));
        return dtoList;
    }
}
